package com.xy.biz.auth.domain.req;

import com.xy.lang.validation.annotation.AlertMessage;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by zsp on 2018/10/11.
 */
@Data
public class GetTokenRequest {

    /**
     * 用户编码，登录名
     */
    @NotBlank(message = "userCodeRequired")
    @AlertMessage(code = "userCodeRequired", msg = "登录名不能为空")
    private String userCode;
    /**
     * 密码
     */
    @NotBlank(message = "passwordRequired")
    @AlertMessage(code = "passwordRequired", msg = "密码不能为空")
    private String password;
    /**
     * 有效期（秒）
     */
    @NotNull(message = "expiredSecondsRequired")
    @AlertMessage(code = "expiredSecondsRequired", msg = "有效期不能为空")
    private Long expiredSeconds;

}
